﻿@model Yglab.Models.User

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/LAYOUT.cshtml";
}

<h2>Kullanıcı Düzenle</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Kullanıcı</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.Label("İsim")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.Label("Soy İsim")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Surname)
            @Html.ValidationMessageFor(model => model.Surname)
        </div>

        <div class="editor-label">
            @Html.Label("Eposta")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.Label("Şifre")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.zirtttt)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.zirtttt)
           
        </div>

        <p>
            <input type="submit" value="Kaydet" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Kullanıcı Listesine Geri Dön", "Index")
</div>


